<template>
	<view>
		<DwUser5 />
	</view>
</template>

<script>
import DwUser5 from '@/uni_modules/dw-user-5/components/dw-user-5/dw-user-5.vue'
export default {
	components: {
		DwUser5
	},
	data() {
		return {};
	},
	mounted() {
		// 页面加载时尝试初始化WebSocket连接
		if (this.$userStatus) {
			this.$userStatus.initWebSocket();
		} else {
			console.log('尝试直接初始化WebSocket连接');
			const userStatusService = require('../../utils/userStatusService.js').default;
			userStatusService.initWebSocket();
		}
	},
	methods: {}
}
</script>

<style></style>